InitDispatchModule
TheInitDispatchModule
method initializes this dispatch module object.
void InitDispatchModule (in ODSession session);
session
- A reference to the current session object.
DISCUSSION
This method is not called directly to initialize this dispatch module object, but is called by a subclass-specific initialization method. By convention, every subclass ofODDispatchModule
should have a separate initialization method (for example, theInitMyDispatchModule
method) that is called when an instance of that subclass is created. The override method may have additional parameters beyond those of theInitDispatchModule
method. TheInitMyDispatchModule
method should call the inheritedInitDispatchModule
method at the beginning of its implementation.If you subclass
ODDispatchModule
, your subclass-specific initialization method, rather than itssomInit
method, should handle any initialization code that can potentially fail. For example, your initialization method may attempt to allocate memory for your dispatch module.OVERRIDING
If you subclassODDispatchModule
, you should not override this method.SEE ALSO
"Creating a Dispatch Module" on page 447 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help